package com.ruoyi.problem.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;

import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 卡牌问题解答对象 t_problem_answer
 * 
 * @author DEREK
 * @date 2023-08-03
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_problem_answer")
public class ProblemAnswer
{

    /** 主键ID */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 咨询表id */
    @Excel(name = "咨询表id")
    private Long cid;

    /** 回复的语音地址 */
    @Excel(name = "回复的语音地址")
    private String voice;
    
    private Integer voiceLength;

    /** 是否采纳 1=是 0=否 */
    @Excel(name = "是否采纳 1=是 0=否")
    private Integer isAdopt;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String extend;

    private Date createTime;
    
    private Date updateTime;
    @TableField(exist = false)
    private String nickName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("cid", getCid())
            .append("voice", getVoice())
            .append("createTime", getCreateTime())
            .append("isAdopt", getIsAdopt())
            .append("extend", getExtend())
            .toString();
    }
}
